    angular.module('payPcApp')
        .factory('departmentmodel', ['$http', 'AppConfig', function($http, AppConfig) {
            var data = angular.isDefined(data) ? data : {};

            var getdata = function() {
                var url = AppConfig.WEB_ROOT + 'util/selectAll';
                return $http.get(url, null, {

                });
            };
            return {
                data: this.data,
                getPrivate: getdata
            };
        }]);